/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.base.db.dao;

import com.yunhoo.base.model.ContractType;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Administrator
 */
public interface ContractTypeDao {

    public void insert(ContractType param) throws SQLException;

    public void update(ContractType param) throws SQLException;

    public void updateIsEnd(ContractType param) throws SQLException;

    public void delete(ContractType param) throws SQLException;

    public void deleteById(ContractType param) throws SQLException;

    public ContractType queryById(ContractType param) throws SQLException;

    public List<ContractType> queryAll(ContractType param) throws SQLException;

    public List<ContractType> directSubNodes(ContractType param) throws SQLException;

    public ContractType nameRepeatForInsert(ContractType param) throws SQLException;

    public ContractType nameRepeatForUpdate(ContractType param) throws SQLException;

    public List<ContractType> queryListByOrgAndYear(ContractType param) throws SQLException;
}
